﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainPopUp.master" AutoEventWireup="true"
    CodeFile="TestCaseList.aspx.cs" Inherits="PopUp_CreateTestCase" Theme="Main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphcphSemiCASEPopUp" runat="Server">
    <table class="AnaTablo" style="width: 100%">
        <tr>
            <th id="ThBaslik" runat="server" class="ThBaslikRenk1">
                TEST CASE LIST
            </th>
        </tr>
        <tr>
            <td>
                <table style="width: 100%">
                    <tr>
                        <td class="TdRenkSolaYasla">
                            Use Case :
                            <asp:Label ID="LabelUcName" runat="server" Font-Bold="true"></asp:Label>
                        </td>
                        <td class="TdRenkSagaYasla">
                            <asp:Button ID="ButtonYeni" runat="server" OnClick="ButtonYeni_Click" SkinID="ButtonYeniKayit" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvTestCase" runat="server" AutoGenerateColumns="False" Width="100%"
                                DataKeyNames="TestCaseID" EmptyDataText="There is no defined test case." OnRowCommand="gvTestCase_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="Relation" HeaderText="RELATED BLOK" ItemStyle-CssClass="columnborder"
                                        ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField DataField="Description" HeaderText="DESCRIPTION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="PreCondition" HeaderText="PRECONDITION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="PostCondition" HeaderText="POSTCONDITION" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="DataRequired" HeaderText="DATA REQUIRED" ItemStyle-CssClass="columnborder" />
                                    <asp:BoundField DataField="Priority" HeaderText="PRIORITY" ItemStyle-CssClass="columnborder" />
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            UPDATE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonGuncelle" runat="server" ToolTip="Update" ImageUrl="~/App_Themes/Main/Images/Ikonlar/guncelle.gif"
                                                CommandArgument='<%# Eval("TestCaseID") %>' CommandName="UpdateTestCase" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" CssClass="columnborder" Width="3%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            DELETE
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ButtonDelete" runat="server" ToolTip="Delete" ImageUrl="~/App_Themes/Main/Images/Ikonlar/kapat.gif"
                                                CommandArgument='<%# Eval("TestCaseID") %>' CommandName="DeleteTestCase" OnClientClick="javascript:return confirm('Test Case will be deleted. Are you sure?')" />
                                        </ItemTemplate>
                                        <ItemStyle Width="3%" HorizontalAlign="Center" CssClass="columnborder" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
